EditOleObject
Edits an OLE object in the document.
Syntax
expression.EditOleObject(data);
expression
- A variable that represents a Api class.
Parameters
Name | Required/Optional | Data type | Default | Description |
---|---|---|---|---|
data | Required | OLEProperties | The OLE object properties. |
Returns
This method doesn't return any data.
Example
var _param = {
"data": "{data}",
"imgSrc": "https://link-to-the-image.jpg",
"objectId": "5_556",
"width": 70,
"height": 70,
"widthPix": 60 * 36000,
"heightPix": 60 * 36000
};
window.Asc.plugin.executeMethod ("EditOleObject", [_param], function () {
window.Asc.plugin.executeCommand ("close", "");
});